function _typeof(obj) {
  '@babel/helpers - typeof';
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
    _typeof = function _typeof(obj) {
      return typeof obj;
    };
  } else {
    _typeof = function _typeof(obj) {
      return obj &&
        typeof Symbol === 'function' &&
        obj.constructor === Symbol &&
        obj !== Symbol.prototype
        ? 'symbol'
        : typeof obj;
    };
  }
  return _typeof(obj);
}

'object' != (typeof ue === 'undefined' ? 'undefined' : _typeof(ue)) ||
'object' != _typeof(ue.interface)
  ? ('object' != (typeof ue === 'undefined' ? 'undefined' : _typeof(ue)) &&
      (ue = {}),
    (ue.interface = {}),
    (ue.interface.broadcast = function(e, t) {
      if ('string' == typeof e) {
        var o = [e, ''];
        void 0 !== t && (o[1] = t);
        var n = encodeURIComponent(JSON.stringify(o));
        'object' ==
          (typeof history === 'undefined' ? 'undefined' : _typeof(history)) &&
        'function' == typeof history.pushState
          ? (history.pushState({}, '', '#' + n),
            history.pushState({}, '', '#' + encodeURIComponent('[]')))
          : ((document.location.hash = n),
            (document.location.hash = encodeURIComponent('[]')));
      }
    }))
  : (function(e) {
      (ue.interface = {}),
        (ue.interface.broadcast = function(t, o) {
          'string' == typeof t &&
            (void 0 !== o
              ? e.broadcast(t, JSON.stringify(o))
              : e.broadcast(t, ''));
        });
    })(ue.interface),
  (window.ue4 = ue.interface.broadcast);
window.ue = ue;
